package com.xjz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjz.model.entity.Post;
import com.xjz.model.entity.PostFavour;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

/**
* @author 86135
* @description 针对表【post_favour(帖子收藏)】的数据库操作Mapper
* @createDate 2025-08-02 15:49:55
* @Entity com.xjz.model.entity.PostFavour
*/
public interface PostFavourMapper extends BaseMapper<PostFavour> {

    /**
     * 根据查询条件分页获取我的帖子收藏列表
     * @param page
     * @param queryWrapper
     * @param userId
     * @return
     */
    Page<Post> listFavourPostByPage(Page<Post> page, @Param(Constants.WRAPPER) QueryWrapper<Post> queryWrapper,
                                    @Param("userId") Long userId);
}




